package com.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.model.User;

@RestController
public class UserController {
	
	@RequestMapping("/getUser")
	public User getUser() {
		com.model.User user = new User();
		user.setAge(18);
		user.setId("1");
		user.setName("test001");
		user.setCode("test001");
		return user;
	}
}
